package com.ruoyi.system.event;

import com.ruoyi.system.buffer.GameData;
import org.springframework.context.ApplicationEvent;

import io.netty.channel.socket.SocketChannel;

/**
 * 自定的游戏响应事件
 */
public class GameResquestEvent extends ApplicationEvent {

    /**
     * 访问函数
     */
    private String ResquestFunction;

    private SocketChannel channel;

    private GameData data;

    public GameResquestEvent(GameData data, SocketChannel channel) {
        super(data);
        this.ResquestFunction =data.getResquestFunction();
        this.channel=channel;
        this.data=data;
    }

    public String getResquestFunction() {
        return ResquestFunction;
    }

    public SocketChannel getChannel(){return channel;}

    public GameData getData(){return data;}

}
